package com.cyh;

import java.util.Date;

import org.junit.Test;

/**
 * Created by CYH on 2018/1/6 0006.
 */
public class ForceConvertFromNull {

    @Test
    public void testForceToIntegerConvertNull() {
        // It's OK to convert from null.
        System.out.println((Integer) null);
    }

    @Test
    public void testForceToDateConvertNull() {
        // It's OK to convert from null.
        System.out.println((Date) null);
    }

    @Test
    public void testForceToStringConvertNull() {
        // It's OK to convert from null.
        System.out.println((String) null);
    }


}
